<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div v-if="post" class="post" v-cloak>
        <div class="left">
            <img class="cover" :src="post.cover + '?imageView2/2/w/400'" />
        </div>
        <div class="right">
            <div class="title">{{ post.title }}</div>
            <div class="address">{{ post.type_name }}/{{ post.area }}㎡/{{ post.position }}</div>
            <div class="tags">
                <div class="tag-item">
                    {{ post.status }}
                </div>
            </div>
            <div class="price">
                <span class="red">起拍价</span>
                <span class="value">{{ post.start_price }}元</span> 
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            loading: false,
        };
    },
    props: {
        post: { type: Object, default: null },
    },

    mounted: function () { },

    computed: {},

    methods: {},
};
</script>

<style scoped>
.post {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 30px;
}

.post .cover {
    width: 220px;
    height: 166px;
    border-radius: 10px;
    overflow: hidden;
}

.post .right {
    padding-left: 30px;
    box-sizing: border-box;
    width: calc(100% - 30px - 220px);
}

.post .title {
    color: #000;
    margin-bottom: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    font-size: 30px;
    font-weight: bolder;
    width: 400px;
}

.post .address {
    color: #a0a0a0;
    font-size: 24px;
    margin-bottom: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 400px;
}

.post .tags {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.post .tag-item:last-child {
    margin-right: 0px;
}

.post .tag-item {
    border: 2px solid #999;
    height: 38px;
    font-size: 24px;
    color: #999;
    padding: 6px 10px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post .price {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    font-size: 24px;
}

.post .red {
    color: red;
    /* font-size: 28px; */
    margin-right: 20px;
}
.post .value{
    font-weight: bold;
    color: red;
    font-size: 28px;
}
</style>